import Vue from 'vue'
import App from './App'
import store from './store'
import MinCache from'./common/util/MinCache.js'
import tip from'./common/util/tip.js'
import configService from'./common/service/config.service.js'

//引入mescroll插件
import MescrollBody from "@/components/mescroll-uni/mescroll-body.vue"
import MescrollUni from "@/components/mescroll-uni/mescroll-uni.vue"
Vue.component('mescroll-body', MescrollBody);
Vue.component('mescroll-uni', MescrollUni);

// 注册缓存器
Vue.use(MinCache,{timeout: 6})

// store
Vue.prototype.$store=store;
// tip
Vue.prototype.$tip=tip;
// config
Vue.prototype.$config=configService;

// request请求
import { http } from '@/common/service/service.js' 
Vue.prototype.$http = http

import people from './pages/user/people.vue'
Vue.component('people',people)

import oil from './pages/oil/oil.vue'
Vue.component('oil',oil)

import record from './pages/record/record.vue'
Vue.component('record',record)

import merchants from './pages/merchants/merchants.vue'
Vue.component('merchants',merchants)

import gas from './pages/gas/gas.vue'
Vue.component('gas',gas)

import sign from './pages/sign/sign.vue'
Vue.component('sign',sign)

import about from './pages/user/about.vue'
Vue.component('about',about)

import cuCustom from './plugin/colorui/components/cu-custom.vue'
Vue.component('cu-custom',cuCustom)

// 引入:uView-UI
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)

Vue.config.productionTip = false

App.mpType = 'app'

const app = new Vue({
	store,
	MinCache,
    ...App
})
app.$mount(); 


 



